package com.springcould.commodity.service.impl;

import com.springcould.commodity.entity.Category;
import com.springcould.commodity.repoit.ProductInfo;
import com.springcould.commodity.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceimpl implements CategoryService {
    @Autowired
    private ProductInfo productInfo;

    @Override
    public List<Category> findCategoryList(List<String> CategoryList) {
        List<Category> list = productInfo.findByTest(CategoryList);
        return list;
    }
}
